<?php
/**
 * @fileoverview    专辑聚合页面
 * @author          xinhua
 * @date            Feb  02 11:31:49 CST 2012
 * @copyright       sina meila
 */
include_once ('../../__global.php');
class myCollection extends ml_controller{

    private $_uid;
    private $finnal=array();
    private $Acontent=array();
    private $uids=array();                              //用来获取nick
    private $nickname;

    public function initParam()    {

        $this->_uid = intval($this->input('uid','G'));//获取被查看人的uid


    }

    public function checkParam() {
        if(empty($this->_uid))
        {
            $this->_uid = $this->__visitor['uid'];
        }
        $this->init_owner($this->_uid);
    }


    public function main(){

        $model=new ml_model_dbCollectionBox();
        $Acollection=$model->getListByUid($this->_uid);
         
        $htmls=ml_tool_collectionOutput::parseColTpl($Acollection);


        $obizUser = ml_biz_user_getinfo::get_instance();
        $obizUser->initUser($this->_uid,$this->__visitor['uid']);
        $userData=$obizUser->getUserArea();

        $this->set_scope_var('$skilltags',$userData['skill_tags']);
        
        $oIFollow = new ml_biz_module_iFollow();
        $this->finnal['iFollow'] = $oIFollow->getList($this->_uid);
        
        $this->finnal['content']=$htmls;
        $this->finnal['title']=$this->__isself?"我的宝贝集-美啦":$userData['nickname']."的宝贝集-美啦";
        $this->finnal['owner_uid']=$this->_uid;
        $this->finnal=array_merge($this->finnal,$userData);
            
        $this->page_output('user::myCollection', $this->finnal);

    }


}
new myCollection();
?>